package com.pet.user.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员积分等级表
 * </p>
 *
 * @author Cookies
 * @since 2024-07-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("membership")
@ApiModel(value="Membership对象", description="会员积分等级表")
public class Membership implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "会员等级id, 唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "会员等级名称")
    private String name;

    @ApiModelProperty(value = "所需最小积分")
    private Integer minPoints;

    @ApiModelProperty(value = "折扣比率(省略百分比)")
    private Integer discountRate;


}
